package com.zc.mall.controller;

import com.zc.mall.service.ICategoryService;
import com.zc.mall.vo.CategoryVo;
import com.zc.mall.vo.ResponseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 曾川
 * @version 1.0.0
 * @ClassName CategoryController.java
 * @Description 类目Controller
 * @createTime 2021年06月06日 10:43:00
 */
@RestController
public class CategoryController {

    @Autowired
    private ICategoryService categoryService;


    @GetMapping("/categories")
    public ResponseVo<List<CategoryVo>> selectAll(){

        return categoryService.selectAll();
    }

}
